<!doctype html>
<body style="mask: url(#marker)">
  <svg>
    <marker id="marker">
      <rect width="10" height="10" fill="yellow"/>
    </marker>
    <path d="M50,50h100" marker-start="url(#marker1)"/>
  </svg>
</body>
<script>
  document.documentElement.offsetTop;
  document.documentElement.style.display = 'none';
  document.documentElement.offsetTop;
</script>
